import http from "../utils/httpRequest.js";
import { exchangeParams, exchangeData } from "../utils";

//get请求
export const getStudents = (params) =>
  http.get("/students", exchangeParams(params));

//登录
export const handleLogin = (username, password) =>
  http.post(`/login?username=${username}&password=${password}`);

export const testPost = (params) =>
  http.post(`/hello/test02`, exchangeData(params));
